﻿<controls:ChildWindow x:Class="ManagementTool.ServiceInfoWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="500" Height="308" 
           Title="Abstract ServiceInfoWindow">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="217*" />
            <RowDefinition Height="52" />
        </Grid.RowDefinitions>
        <Grid x:Name="uxContent" Margin="2,2,2,0" Height="209" VerticalAlignment="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="170" />
                <ColumnDefinition Width="219*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Text="Service name:" FontSize="12" TextAlignment="Left" VerticalAlignment="Center"/>
            <TextBlock Grid.Row="1" Text="Is service routed:" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" />
            <TextBlock Grid.Row="2" Text="Service path:" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" />
            <TextBlock Grid.Row="3" Text="Metadata path:" FontSize="12" TextAlignment="Left" VerticalAlignment="Center"  />
            <TextBlock Grid.Row="4" Text="Routing service path:" FontSize="12" TextAlignment="Left" VerticalAlignment="Center"  />
            <TextBlock Grid.Row="5" Text="Routing metadata path:" FontSize="12" TextAlignment="Left" VerticalAlignment="Center"  />
            <TextBlock Grid.Row="0" Grid.Column="1" Name="uxServiceName" Text="Abstract name" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" UseLayoutRounding="True" />
            <CheckBox Grid.Row="1" Grid.Column="1" Name="uxIsServiceRouted"  VerticalAlignment="Center" UseLayoutRounding="True" />
            <TextBlock Grid.Row="2" Grid.Column="1" Name="uxServicePath" Text="Abstract http://localhost:5555/1/" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" UseLayoutRounding="True" />
            <TextBlock Grid.Row="3" Grid.Column="1" Name="uxMetadataPath" Text="Abstract http://localhost:5555/2/" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" UseLayoutRounding="True" />
            <TextBlock Grid.Row="4" Grid.Column="1" Name="uxRoutingServicePath" Text="Abstract http://localhost:6666/2/" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" UseLayoutRounding="True" />
            <TextBlock Grid.Row="5" Grid.Column="1" Name="uxRoutingMetadataPath" Text="Abstract http://localhost:6666/2/" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" UseLayoutRounding="True" />
        </Grid>
        <Button x:Name="uxSave" Content="Save" Width="75" Height="23" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Click="uxSave_Click" />
        <Button Content="Reload" Grid.Row="1" Height="23" Margin="0,0,81,0" Name="uxReload" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75" Click="uxReload_Click" />
        <Button Content="Change routing path" Grid.Row="1" HorizontalAlignment="Left" Name="button1" Width="145" Height="23" VerticalAlignment="Bottom" Click="button1_Click" />
        <TextBox x:Name="uxChangePath" Grid.Row="1" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="145" />
        <HyperlinkButton Content="View service wsdl description" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="311,0,0,0" Name="uxWsdlLink" VerticalAlignment="Top" Width="165" />
    </Grid>
</controls:ChildWindow>